package week9;

public class Animal {
    private int age;
            public Animal(){}
    public Animal(int age){
        this.age=age;
    }
    public int getAge(){
        return age;
    }
    public void setAge(int age){
        this.age=age;
    }
    public void info(){
        System.out.println("我今年"+age+"岁了！");
    }
}
